package com.example.blog.vo;


import com.example.blog.entity.Tag;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.List;

@Data
public class ArticleVo {

    //    @JsonSerialize(using = ToStringSerializer.class)
    private String id;

    private String title;

    private String summary;

    private Integer commentCounts;

    private Integer viewCounts;

    private Integer weight;
    /**
     * 创建时间
     */
    private String createDate;

    private String author;
    /*创建该文章的作者头像*/
    private String avatar;

    private String authorId;

    private ArticleBodyVo body;

    private List<TagVo> tags;/*文章标签*/

    private CategoryVo category;
}
